package com.amsp.oa.oademo.service;

import com.amsp.oa.oademo.entity.VehicleApply;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface VehicleApplyService extends IService<VehicleApply> {
    IPage<VehicleApply> getApplyList(Page<VehicleApply> page, String keyword, String status);
    VehicleApply submitApply(VehicleApply apply);
    VehicleApply updateApply(VehicleApply apply);
    void deleteApply(Long id);
    VehicleApply getApplyByNo(String applyNo);
    IPage<VehicleApply> getMyApplies(Page<VehicleApply> page, String applicant);
    VehicleApply approveApply(Long id, String approver, String approveRemark, boolean isApproved);
    VehicleApply assignDriver(Long id, String driverName, String vehicleNo);
    VehicleApply cancelApply(Long id);
} 